import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/feeRule/list',
    method: 'post',
    data: query
  })
}

export function deleteTempRule(query) {
  return request({
    url: '/feeRule/delete/' + query.id,
    method: 'post',
  })
}

export function createTempRule(query) {
  return request({
    url: '/feeRule/create',
    method: 'post',
    data: query
  })
}

export function getTempRule(query) {
  return request({
    url: '/feeRule/get/' + query.id,
    method: 'get',
  })
}

export function updateTempRule(query) {
  return request({
    url: '/feeRule/update',
    method: 'post',
    data: query
  })
}

export function getAllWeeks(query) {
  return request({
    url: '/auth/listFeeWeek',
    method: 'get',
    data: query
  })
}

export function getTempRules(query) {
  return request({
    url: '/auth/listDepartmentRule',
    method: 'post',
    data: query
  })
}

